﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Data;

namespace Himp.TaskScheduling
{
    public class BizflowConfigDto : EntityDto<Guid>
    {
        /// <summary>
        /// 工作流模型名称
        /// </summary>
        public string WorkflowModelName { get; set; }

        /// <summary>
        /// 工作流模型Key
        /// </summary>
        public string WorkflowModelKey { get; set; }


        /// <summary>
        /// 工作流授权提供器
        /// </summary>
        public EnumWorkflowTypeProvider WorkflowTypeProvider { get; set; }

        /// <summary>
        /// 提供值
        /// </summary>
        public string? ProviderKey { get; set; }

        /// <summary>
        /// 业务流程代码
        /// </summary>
        public string BizflowCode { get; set; }

        /// <summary>
        /// 业务流程名称
        /// </summary>
        public string BizflowName { get; set; }

        /// <summary>
        /// 有效标识
        /// </summary>
        public bool ValiFlag { get; set; }

        /// <summary>
        /// 工作流授权提供器
        /// </summary>
        public string WorkflowTypeProviderName
        {
            get
            {
                return WorkflowTypeProvider.ToString();
            }
        }
        
        /// <summary>
        /// 
        /// </summary>
        public List<BizflowNodeDto> BizflowNodes { get; set; }
    }
}
